package com.wiloon.java8x.performance;

import com.wiloon.java8x.Foo;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by USER on 2015/8/11.
 */
public class BigList {
    public static void main(String[] args) {
        List list = new ArrayList<>();

        long start  = System.currentTimeMillis();
        for(int i=0;i<200000;i++){
            Foo foo = new Foo();
            foo.setFoo("testfoo");
            foo.setBar("bartest");
            foo.setFoobar("foobartest");
            list.add(foo);
        }
        long end  = System.currentTimeMillis();
        System.out.println("test:"+(end-start));
    }
}

